From e09a22764fdae7af50ae48d6dd76bc35e57cc6ba Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 4 Feb 2006 23:14:26 +0000 Subject: [PATCH] fix password update bug for webif/mini_httpd SVN-Revision: 3133 --- openwrt/package/webif/files/usr/lib/webif/webif.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/package/webif/files/usr/lib/webif/webif.sh b/openwrt/package/webif/files/usr/lib/webif/webif.sh index 7ecf0882fe..619557fe43 100644 --- a/openwrt/package/webif/files/usr/lib/webif/webif.sh +++ b/openwrt/package/webif/files/usr/lib/webif/webif.sh @@ -196,7 +196,7 @@ apply_passwd() { killall -HUP httpd ;; mini_httpd/*) - grep root /etc/passwd | cut -d: -f1,2 > $cgidir/.htpasswd + grep '^root:' /etc/passwd | cut -d: -f1,2 > $cgidir/.htpasswd killall -HUP mini_httpd ;; esac -- 2.30.2